const { verifyUpvoteByUser } = require("../server/momentServer")

const verifyUpvote = async (ctx , next) => {
    const {user_id, moment_id} = ctx.request.body

    const data = await verifyUpvoteByUser(user_id, moment_id)
    ctx['upvote'] = data
    await next()
}
module.exports =  {
    verifyUpvote
}